// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using System;
using System.Linq;
using Elastic.Clients.Elasticsearch.Serialization;

namespace Elastic.Clients.Elasticsearch.Core.HealthReport;

[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.HealthReport.Json.ShardsAvailabilityIndicatorDetailsConverter))]
public sealed partial class ShardsAvailabilityIndicatorDetails
{
	[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
	public ShardsAvailabilityIndicatorDetails(long creatingPrimaries, long creatingReplicas, long initializingPrimaries, long initializingReplicas, long restartingPrimaries, long restartingReplicas, long startedPrimaries, long startedReplicas, long unassignedPrimaries, long unassignedReplicas)
	{
		CreatingPrimaries = creatingPrimaries;
		CreatingReplicas = creatingReplicas;
		InitializingPrimaries = initializingPrimaries;
		InitializingReplicas = initializingReplicas;
		RestartingPrimaries = restartingPrimaries;
		RestartingReplicas = restartingReplicas;
		StartedPrimaries = startedPrimaries;
		StartedReplicas = startedReplicas;
		UnassignedPrimaries = unassignedPrimaries;
		UnassignedReplicas = unassignedReplicas;
	}
#if NET7_0_OR_GREATER
	public ShardsAvailabilityIndicatorDetails()
	{
	}
#endif
#if !NET7_0_OR_GREATER
	[System.Obsolete("The type contains required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")]
	public ShardsAvailabilityIndicatorDetails()
	{
	}
#endif
	[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
	internal ShardsAvailabilityIndicatorDetails(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
	{
		_ = sentinel;
	}

	public
#if NET7_0_OR_GREATER
	required
#endif
	long CreatingPrimaries { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long CreatingReplicas { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long InitializingPrimaries { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long InitializingReplicas { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long RestartingPrimaries { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long RestartingReplicas { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long StartedPrimaries { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long StartedReplicas { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long UnassignedPrimaries { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	long UnassignedReplicas { get; set; }
}